/*
 *  txdnet.cn tonydon
 * 
 */
package cn.txdnet.txcms.query;

import java.sql.Date;
import txdnet.util.StaticMark;

/**
 *
 * @author txdnet
 */
public class TinyCmtQuery extends BaseQuery {

    private static final long serialVersionUID = -3110475045292308574L;
    private Long id;
    private Byte pubstate;
    private Integer beginTopHitNum;
    private Integer endTopHitNum;
    private Integer beginStepHitNum;
    private Integer endStepHitNum;
    private Byte channeltype;
    private Long pubBeginTimeMs;
    private Long pubEndTimeMs;
    private Date pubBeginTime;
    private Date pubEndTime;
    private String nickKeyword;
    private Long relateid;

    @Override
    public void filter() {
        if (pubBeginTime != null && pubEndTime != null) {
            pubBeginTimeMs = pubBeginTime.getTime();
            pubEndTimeMs = pubEndTime.getTime();
        }
        if (nickKeyword !=null ){
            nickKeyword = StaticMark.STR_PERCENT.concat(nickKeyword).concat(StaticMark.STR_PERCENT);
        }
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the pubstate
     */
    public Byte getPubstate() {
        return pubstate;
    }

    /**
     * @param pubstate the pubstate to set
     */
    public void setPubstate(Byte pubstate) {
        this.pubstate = pubstate;
    }

    /**
     * @return the beginTopHitNum
     */
    public Integer getBeginTopHitNum() {
        return beginTopHitNum;
    }

    /**
     * @param beginTopHitNum the beginTopHitNum to set
     */
    public void setBeginTopHitNum(Integer beginTopHitNum) {
        this.beginTopHitNum = beginTopHitNum;
    }

    /**
     * @return the endTopHitNum
     */
    public Integer getEndTopHitNum() {
        return endTopHitNum;
    }

    /**
     * @param endTopHitNum the endTopHitNum to set
     */
    public void setEndTopHitNum(Integer endTopHitNum) {
        this.endTopHitNum = endTopHitNum;
    }

    /**
     * @return the beginStepHitNum
     */
    public Integer getBeginStepHitNum() {
        return beginStepHitNum;
    }

    /**
     * @param beginStepHitNum the beginStepHitNum to set
     */
    public void setBeginStepHitNum(Integer beginStepHitNum) {
        this.beginStepHitNum = beginStepHitNum;
    }

    /**
     * @return the endStepHitNum
     */
    public Integer getEndStepHitNum() {
        return endStepHitNum;
    }

    /**
     * @param endStepHitNum the endStepHitNum to set
     */
    public void setEndStepHitNum(Integer endStepHitNum) {
        this.endStepHitNum = endStepHitNum;
    }

    /**
     * @return the channeltype
     */
    public Byte getChanneltype() {
        return channeltype;
    }

    /**
     * @param channeltype the channeltype to set
     */
    public void setChanneltype(Byte channeltype) {
        this.channeltype = channeltype;
    }

    /**
     * @return the pubBeginTimeMs
     */
    public Long getPubBeginTimeMs() {
        return pubBeginTimeMs;
    }

    /**
     * @param pubBeginTimeMs the pubBeginTimeMs to set
     */
    public void setPubBeginTimeMs(Long pubBeginTimeMs) {
        this.pubBeginTimeMs = pubBeginTimeMs;
    }

    /**
     * @return the pubEndTimeMs
     */
    public Long getPubEndTimeMs() {
        return pubEndTimeMs;
    }

    /**
     * @param pubEndTimeMs the pubEndTimeMs to set
     */
    public void setPubEndTimeMs(Long pubEndTimeMs) {
        this.pubEndTimeMs = pubEndTimeMs;
    }

    /**
     * @return the relateid
     */
    public Long getRelateid() {
        return relateid;
    }

    /**
     * @param relateid the relateid to set
     */
    public void setRelateid(Long relateid) {
        this.relateid = relateid;
    }
}
